all: test data_gen
test: test.o hash.o hash_fun.o
	gcc -g -o test test.o hash.o hash_fun.o
test.o: test.c hash.h
	gcc -g -c test.c
hash.o: hash.c hash.h
	gcc -g -c hash.c  hash.h
hash_fun.o: hash_fun.c hash_fun.h
	gcc -g -c hash_fun.c hash_fun.h
data_gen:
	gcc -g -o data_gen data_gen.c

clean:
	rm -rf *.o
	rm -rf test data_gen
